/*
 * @Description: 日程API接口
 * @Author: QianLong
 * @Date: 2019-07-07 19:06:52
 * @LastEditors    : QianLong
 * @LastEditTime   : 2023-12-12 14:08:36
 */
import http from '@/utils/http/axios'

export function changeDefaultCate(params) {
  return http.request(
    {
      url: '/schedule/changeDefaultCate',
      method: 'POST',
      params
    },
    {
      isTransformRequestResult: false
    }
  )
}
export function editCateInfo(params) {
  return http.request(
    {
      url: '/schedule/editCateItem',
      method: 'POST',
      params
    },
    {
      isTransformRequestResult: false
    }
  )
}
export function editScheduleInfo(params) {
  return http.request(
    {
      url: '/schedule/editScheduleInfo',
      method: 'POST',
      params
    },
    {
      isTransformRequestResult: false
    }
  )
}
export function getScheduleInfo(params) {
  return http.request({
    url: '/schedule/editScheduleInfo',
    method: 'GET',
    params
  })
}
export function getCateList(params) {
  return http.request({
    url: '/schedule/cate_list',
    method: 'GET',
    params
  })
}
export function getList(params) {
  return http.request({
    url: '/schedule/list',
    method: 'GET',
    params
  })
}
export function getOnlyCateList(params) {
  return http.request({
    url: '/schedule/onlyCateList',
    method: 'GET',
    params
  })
}
export function getScheduleLogList(params) {
  return http.request({
    url: '/schedule/schedule_log_list',
    method: 'GET',
    params
  })
}
export function delCateItem(params) {
  return http.request(
    {
      url: '/schedule/delCate',
      method: 'POST',
      params
    },
    {
      isTransformRequestResult: false
    }
  )
}
export function delSchedule(params) {
  return http.request(
    {
      url: '/schedule/delSchedule',
      method: 'POST',
      params
    },
    {
      isTransformRequestResult: false
    }
  )
}
export function statusSchedule(params) {
  return http.request(
    {
      url: '/schedule/statusSchedule',
      method: 'POST',
      params
    },
    {
      isTransformRequestResult: false
    }
  )
}
